package cn.com.taurus.impl;

import cn.com.taurus.bean.RedeemRecordBean;
import cn.com.taurus.entity.RedeemRecord;
import cn.com.taurus.mapper.RedeemRecordMapper;
import cn.com.taurus.service.RedeemRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author zhy
 * @createTime 2021-6-3 20:49:18
 * @remark 赎回流水Impl层
 * @version 1.0
 */
@Service
public class RedeemRecordImpl implements RedeemRecordService {
    @Autowired
    RedeemRecordMapper redeemRecordMapper;
    @Override
    public int redeemRecord(RedeemRecord redeemRecord) {
        return redeemRecordMapper.redeemRecord(redeemRecord);
    }

    @Override
    public int redeemRecordUpdate(RedeemRecord redeemRecord) {
        return redeemRecordMapper.redeemRecordUpdate(redeemRecord);
    }

    @Override
    public int redeemRecordDelete(Integer rrId) {
        return redeemRecordMapper.redeemRecordDelete(rrId);
    }

    @Override
    public List<RedeemRecord> redeemRecordSelectAll() {
        return redeemRecordMapper.redeemRecordSelectAll();
    }

    @Override
    public RedeemRecord redeemRecordSelectOne(Integer rrId) {
        return redeemRecordMapper.redeemRecordSelectOne(rrId);
    }

    @Override
    public List<RedeemRecordBean> conditionSelectRedeemRecord(String rmId, String redeemTime, String redeemShare, String time){
        return redeemRecordMapper.conditionSelectRedeemRecord(rmId,redeemTime,redeemShare,time);
    }

    @Override
    public Integer selectOne(String redeemTime,String time){
        return redeemRecordMapper.selectOne(redeemTime,time);
    }
}
